# FindCUnit.cmake

find_path(CUNIT_INCLUDE_DIR
  NAMES CUnit/CUnit.h
  PATHS /usr/local/include /usr/include /opt/local/include 
)

find_library(CUNIT_LIBRARY
  NAMES libcunit.so libcunit.so.1 libcunit.so.1.0.1 libcunit.a
  PATHS /usr/local/lib /usr/lib /opt/local/lib /usr/lib/x86_64-linux-gnu
)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(CUnit DEFAULT_MSG CUNIT_INCLUDE_DIR CUNIT_LIBRARY)

mark_as_advanced(CUNIT_INCLUDE_DIR CUNIT_LIBRARY)